function washing() {
    console.log(`wife is washing your clothes`);
}

function cleaning() {
    console.log(`wife is cleaning`);
}

function cooking() {
    console.log(`wife is cooking`);
}

class HuiWife {
    constructor(name, hobby) {
        this.name = name;
        this.hobby = hobby;
    }
    doHomework() {
        cleaning();
        washing();
        cooking();
    }

    takingTrip() {
        console.log(`we head to Hawaian for a trip`);
    }
    play() {
        console.log(`${this.name} is playing ${this.hobby}`);
    }
}
let qiaoBiLuo = new HuiWife(`qiaoBiLuo`, `cheat`);
qiaoBiLuo.doHomework()
qiaoBiLuo.play();